package com.example.tenant.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色组与用户关联表
 * </p>
 *
 * @author waterx
 * @since 2024-10-09
 */
@Data
@ColumnWidth(10)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_r_group_user")
public class SysRGroupUser extends Model<SysRGroupUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ExcelProperty("id")
    private String id;

    /**
     * 角色组ID
     */
    @ExcelProperty("role_group_id")
    private String roleGroupId;

    /**
     * 用户ID
     */
    @ExcelProperty("user_id")
    private String userId;
}
